package com.example.flower_shop.dto.category;

import com.example.flower_shop.entity.Category;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class CategoryVO {
    private Long id;
    private String name;
    private String description;

    public CategoryVO(Category category) {
        this.id = category.getId();
        this.name = category.getName();
        this.description = category.getDescription();
    }
}